/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.visitor;

/**
 *
 * @author Nashief
 */
public class TwoElement implements NumberElement{

    int a; 
    int b;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }

    
    
    public TwoElement(int a, int b) {
        this.a = a;
        this.b = b;
    }


    @Override
    public void accept(NumberVisitor visitor) {
       visitor.visit(this);
    }
    
    
    
}
